package com.lifang.test5;

import com.lifang.framework.annotation.beans.Component;
import com.lifang.framework.context.ApplicationListener;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class CustomEventListener implements ApplicationListener<CustomEvent> {

    @Override
    public void onApplicationEvent(CustomEvent event) {
        log.info("接收到自定义广播，message=" + event.getMessage());
    }
}
